#include "PackageFactory.h"

#include <iostream>

using namespace std;

int main(int argc, char** argv)
{
	char package;
	PackageFactory* factory;

	cout << "Please chose your package, [1] for steak, [2] for pork." << endl;

	cin >> package;

	switch (package)
	{
	case '1':
		factory = SteakPackageFactory::Instance();
		break;
	case '2':
		factory = PorkPackageFactory::Instance();
		break;
	default:
		cout << "You have chosen neither." << endl;
		return 0;
	}

	Staple* staple = factory->CreaetStaple();
	Drink* drink = factory->CreateDrink();

	delete staple;
	delete drink;

	delete factory;

	return 0;
}